<template>
  <div id="app" class="w-screen bg-white text-sm text-gray-33 tracking-wider">
    <!-- <div class="w-full h-32 bg-black" v-show="isSq"></div> -->
    <router-view />
    <the-sq ref="sq" />
    <the-zx ref="zx" />
  </div>
</template>

<script>
import theSq from "@/components/sq-pop.vue";
import theZx from "@/components/zx-pop.vue";

export default {
  components: { theSq, theZx },
  computed: {
    isSq() {
      return this.$store.state.sq;
    },
    isZx() {
      return this.$store.state.zx;
    },
  },
  created() {
    // gsap.registerPlugin(ScrollTrigger);
  },
  watch: {
    isSq(val) {
      if (val) {
        this.$refs.sq.open();
      } else {
        this.$refs.sq.close();
      }
    },
    isZx(val) {
      if (val) {
        this.$refs.zx.open();
      }
    },
  },
};
</script>

<style>
#app {
  /* color: rgb(31, 51, 73); */
  font-family: "PingFang SC", "PingFang SC-Semibold", "Poppins", sans-serif;
}
html,
body {
  padding: 0;
  margin: 0;
}
* {
  box-sizing: border-box;
}
</style>
